#include "stdinc.h"

#include "game/GameApp.h"
#include "platform/misc.h"

#include <windows.h>


int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
	InitMiscPlatf();

	CApplication* theApp;

	theApp = new CGameApp();
	theApp->SetApp(theApp);

	if (theApp->Init())
	{
		theApp->MainLoop();
	}

	theApp->Destroy();

	SAFE_DEL(theApp);
}